fetcher/curl: Fix leaks caught by ASAN
authorColin Walters <walters@verbum.org>
Sat, 4 Mar 2017 15:11:15 +0000 (10:11 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 6 Mar 2017 17:30:19 +0000 (17:30 +0000)
commit72336f1c4885f7916be58c7bcf2501655b33e5aa
tree4133415e97551c0fd2afa7ed24ea509bb2aa1837
parentf667a82fc10a0e006c4aa634e4ffbffe1f9c537d
fetcher/curl: Fix leaks caught by ASAN

I had to rebuild `glib` with `-fsanitize=address` in order to get a stack trace
to finally get this one.  However, *installing* that glib "system wide"
in my container breaks everything (including `rpm-ostree`, `dnf`, `pkg-config` etc.)
that wasn't built with ASAN.

So my test scenario right now is to extract the libs and do e.g.:
```
make && env LD_LIBRARY_PATH=$HOME/src/distgit/fedora/glib2/asan-libs make check TESTS=tests/test-basic.sh
```

Closes: #719
Approved by: jlebon
src/libostree/ostree-fetcher-curl.c